package com.carsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carsystem.entity.Order;
import com.carsystem.request.SetOrderRequestVO;
import com.carsystem.response.FrontOrderResponseVo;
import com.carsystem.response.OrderResponseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ykl
 * @since 2021-12-04
 */
public interface OrderMapper extends BaseMapper<Order> {
    Integer getOrderListCount(Map<String,Object> map);

    List<OrderResponseVo> getOrderList(Map<String, Object> map);

    boolean updateOrderResponse(OrderResponseVo orderResponseVo);

    boolean setOrder(SetOrderRequestVO setOrderRequestVO);

    List<FrontOrderResponseVo> selectOrderById(String memberId);

    List<FrontOrderResponseVo> getOrderByIdList(Map<String, Object> map);

    Integer getOrderByIdListCount(Map<String, Object> map);
}
